package hust.rpc.enums;

import java.util.HashMap;
import java.util.Map;

public enum RpcResponseType {
    SUCCESS(200, "成功"),
    ERROR(400, "错误"),
    TIME_OUT(401, "响应超时");

    private final int code;
    private final String description;

    RpcResponseType(int code, String description) {
        this.code = code;
        this.description = description;
    }
}
